package com.jbookstore.service.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;

import com.jbookstore.dao.UserDao;
import com.jbookstore.dto.UserDto;
import com.jbookstore.service.UserService;

public class UserServiceImpl implements UserService{

	@Autowired private UserDao userDao;
	
	public void signUp(UserDto userDto) {
		this.userDao.insertUser(userDto);
	}
	
	public UserDto login(UserDto userDto) {
		return this.userDao.selectUser(userDto);
	}
}
